#ifndef MYTEXTEDIT_H
#define MYTEXTEDIT_H

#include <QTextEdit>
#include <QWidget>
#include <QFont>
#include <QKeyEvent>

class MyTextEdit : public QTextEdit
{
public:
    MyTextEdit(QWidget *parent = nullptr);
    void rollIn();
    void rollOut();
private:
    int ctrl_flag;
protected:
    //virtual void wheelEvent(QWheelEvent *event); // 鼠标滚轮
    //virtual void keyPressEvent(QKeyEvent *event); // 按键事件
};

#endif // MYTEXTEDIT_H
